package org.wanho.rent.entity;

import java.io.Serializable;
import java.util.Date;

public class OnlineApply implements Serializable{

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -6545307772028995261L;

	private Integer id;
	
	/**
	 * 产品ID--外键约束
	 */
	private Integer productId;
	private Product product;
	
	private String applyPerson;
	
	private String applyIDCard;
	
	private Double applyNum;
	
	/**
	 * 申请时间，使用java.util.Date
	 */
	private Date applyDate;

	public OnlineApply() {
		super();
	}

	public OnlineApply(Integer id, Integer productId, String applyPerson,
			String applyIDCard, Double applyNum, Date applyDate) {
		super();
		this.id = id;
		this.productId = productId;
		this.applyPerson = applyPerson;
		this.applyIDCard = applyIDCard;
		this.applyNum = applyNum;
		this.applyDate = applyDate;
	}

	
	
	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public String getApplyPerson() {
		return applyPerson;
	}

	public void setApplyPerson(String applyPerson) {
		this.applyPerson = applyPerson;
	}

	public String getApplyIDCard() {
		return applyIDCard;
	}

	public void setApplyIDCard(String applyIDCard) {
		this.applyIDCard = applyIDCard;
	}

	public Double getApplyNum() {
		return applyNum;
	}

	public void setApplyNum(Double applyNum) {
		this.applyNum = applyNum;
	}

	public Date getApplyDate() {
		return applyDate;
	}

	public void setApplyDate(Date applyDate) {
		this.applyDate = applyDate;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "applyDate=" + applyDate + ", applyIDCard="
				+ applyIDCard + ", applyNum=" + applyNum + ", applyPerson="
				+ applyPerson + ", id=" + id + ", productId=" + productId + "\n";
	}
	
	
}
